package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.BzTagsDao;
import com.bootdo.program.wallpaper.domain.BzTagsDO;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor=Exception.class)
public class BzTagsService   {
	@Autowired
	private BzTagsDao bzTagsDao;
	
	
	public BzTagsDO get(Long id){
		return bzTagsDao.get(id);
	}
	
	
	public List<BzTagsDO> list(Map<String, Object> map){
		return bzTagsDao.list(map);
	}
	
	
	public int count(Map<String, Object> map){
		return bzTagsDao.count(map);
	}
	
	
	public int save(BzTagsDO bzTags){
		return bzTagsDao.save(bzTags);
	}
	
	
	public int update(BzTagsDO bzTags){
		return bzTagsDao.update(bzTags);
	}
	
	
	public int remove(Long id){
		return bzTagsDao.remove(id);
	}
	
	
	public int batchRemove(Long[] ids){
		return bzTagsDao.batchRemove(ids);
	}
	
}
